const chalk = require('chalk');

module.exports = (opt, app) => {


  console.log(chalk.blue.bgBlack.bold('authToken middleware'));


  return app.passport.authenticate('jwt', { session: false, successReturnToOrRedirect: null });
};
